Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optimistic locking to Fedora #519

Merged
merged 1 commit into from
Aug 6, 2018
Merged

Add optimistic locking to Fedora #519

merged 1 commit into from
Aug 6, 2018

Conversation

awead
Copy link
Contributor

@awead awead commented Aug 3, 2018

Fixes #454

@awead awead added the Review label Aug 3, 2018
# @note Fedora's last modified response is not granular enough to produce an effective lock token
# therefore, we use the same implementation as the memory adapter. This could fail to lock a
# resource if Fedora updated this resource between the time it was saved and Valkyrie created
# the token.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I appreciate the need for finer-grained locking than Fedora's HTTP-date based 1-second granularity. But maybe we should fall back on that, so we had at least that much protection against updates from non-Valkyrie clients?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

8/6/18: We decided that the current implementation is good enough to close this ticket, and created a separate ticket for using Fedora's If-Unmodified-Since header (#522)

@hackartisan hackartisan force-pushed the i#454-fedora-adapter branch 2 times, most recently from 095769e to 629fb6e Compare August 6, 2018 13:55
fixes #454

Co-authored-by: Trey Pendragon <[email protected]>
Co-authored-by: Anna Headley <[email protected]>
Co-authored-by: Carolyn Cole <[email protected]>
@hackartisan hackartisan changed the title [WIP] Adding optimistic locking to Fedora Add optimistic locking to Fedora Aug 6, 2018
@escowles escowles merged commit 2161315 into master Aug 6, 2018
@escowles escowles deleted the i#454-fedora-adapter branch August 6, 2018 18:15
@escowles escowles removed the Review label Aug 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants